package taxi

class LoginTagLib {
	def loginControl = {
		if(session.Cliente){
			out << "Oi ${session.Cliente.nome} "
			out << """[${link(action:"logout", controller:"Cliente"){"Logout"}}]"""
		} 
		else {
			out << """[${link(action:"login", controller:"Cliente"){"Login"}}]"""      
		}
	  }
}
